﻿@using Ids4Review.AuthorizationServer.Models
@model ScopeVm
@{
    var _desc = $"{Model.Description}";
}
@*
    For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
<li class="list-inline">
    <label>
        <input type="checkbox" name="ScopesConsented" id="scopes_@Model.Name" checked="@Model.Checked" disabled="@Model.Required" value="@Model.Name" /><small>@Model.Name</small>
        @if (Model.Emphasize)
        {
            <span class="glyphicon glyphicon-exclamation-sign"></span>
        }
        @if (!string.IsNullOrEmpty(Model.Description))
        {
            <label for="scopes_@Model.Name">@_desc</label>

        }
        @if (Model.Required)
        {
            <input type="hidden" name="ScopesConsented" id="scopes_@Model.Name" value="@Model.Name" />
        }
    </label>
</li>
